package com.carlinfo.users.service;

import com.alibaba.fastjson.JSONObject;
import com.carlinfo.common.util.PageInfoUtil;
import com.carlinfo.users.pojo.AUsers;

import java.util.List;
import java.util.Map;

/**
 * 用户模块的service
 */
public interface IUsersService {
    /**
     * 保存一条用户
     * @param users
     * @return
     */
    JSONObject saveOneUsersService(AUsers users) throws Exception;

    /**
     * 查询一条用户
     * @param condMap
     * @return
     */
    AUsers findOneUsersService(Map<String, Object> condMap);
    /**
     * 查询多条记录
     * 分页
     * @return
     */
    List<AUsers> findCondListUsersService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
}
